cuda_d.cuda

Members

Aliases

CUdeviceptr
alias CUdeviceptr = ulong

CUDA device pointer CUdeviceptr is defined as an unsigned integer type whose size matches the size of a pointer on the target platform.

CUsurfObject
alias CUsurfObject = ulong

< An opaque value that represents a CUDA texture object

CUtexObject
alias CUtexObject = ulong

< CUDA graphics interop resource

Enums

CUaddress_mode_enum
enum CUaddress_mode_enum

Texture reference addressing modes

CUarray_cubemap_face_enum
enum CUarray_cubemap_face_enum

Array indices for cube faces

CUarray_format_enum
enum CUarray_format_enum

Array formats

CUcomputemode_enum
enum CUcomputemode_enum

Compute Modes

CUctx_flags_enum
enum CUctx_flags_enum

Context creation flags

CUdevice_attribute_enum
enum CUdevice_attribute_enum

Device properties

CUevent_flags_enum
enum CUevent_flags_enum

Event creation flags

CUfilter_mode_enum
enum CUfilter_mode_enum

Texture reference filtering modes

CUfunc_cache_enum
enum CUfunc_cache_enum

Function cache configurations

CUfunction_attribute_enum
enum CUfunction_attribute_enum

Function properties

CUgraphicsMapResourceFlags_enum
enum CUgraphicsMapResourceFlags_enum

Flags for mapping and unmapping interop resources

CUgraphicsRegisterFlags_enum
enum CUgraphicsRegisterFlags_enum

Flags to register a graphics resource

CUipcMem_flags_enum
enum CUipcMem_flags_enum

CUDA Ipc Mem Flags

CUjitInputType_enum
enum CUjitInputType_enum

Device code formats

CUjit_cacheMode_enum
enum CUjit_cacheMode_enum

Caching modes for dlcm

CUjit_fallback_enum
enum CUjit_fallback_enum

Cubin matching fallback strategies

CUjit_option_enum
enum CUjit_option_enum

Online compiler and linker options

CUjit_target_enum
enum CUjit_target_enum

Online compilation targets

CUlimit_enum
enum CUlimit_enum

Limits

CUmemAttach_flags_enum
enum CUmemAttach_flags_enum

CUDA Mem Attach Flags

CUmemorytype_enum
enum CUmemorytype_enum

Memory types

CUoccupancy_flags_enum
enum CUoccupancy_flags_enum

Occupancy calculator flag

CUpointer_attribute_enum
enum CUpointer_attribute_enum

Pointer information

CUresourceViewFormat_enum
enum CUresourceViewFormat_enum

Resource view format

CUresourcetype_enum
enum CUresourcetype_enum

Resource types

CUsharedconfig_enum
enum CUsharedconfig_enum

Shared memory configurations

CUstream_flags_enum
enum CUstream_flags_enum

Stream creation flags

cudaError_enum
enum cudaError_enum

Error codes

Functions

cuCtxGetApiVersion
CUresult cuCtxGetApiVersion(CUcontext ctx, uint* version_)

\brief Gets the context's API version.

cuCtxGetSharedMemConfig
CUresult cuCtxGetSharedMemConfig(CUsharedconfig* pConfig)

\brief Returns the current shared memory configuration for the current context.

cuGetExportTable
CUresult cuGetExportTable(const(void*)* ppExportTable, const(CUuuid)* pExportTableId)

@}

Manifest constants

CUDA_ARRAY3D_2DARRAY
enum CUDA_ARRAY3D_2DARRAY;

Deprecated, use CUDA_ARRAY3D_LAYERED

CUDA_ARRAY3D_CUBEMAP
enum CUDA_ARRAY3D_CUBEMAP;

If set, the CUDA array is a collection of six 2D arrays, representing faces of a cube. The width of such a CUDA array must be equal to its height, and Depth must be six. If ::CUDA_ARRAY3D_LAYERED flag is also set, then the CUDA array is a collection of cubemaps and Depth must be a multiple of six.

CUDA_ARRAY3D_DEPTH_TEXTURE
enum CUDA_ARRAY3D_DEPTH_TEXTURE;

This flag if set indicates that the CUDA array is a DEPTH_TEXTURE.

CUDA_ARRAY3D_LAYERED
enum CUDA_ARRAY3D_LAYERED;

If set, the CUDA array is a collection of layers, where each layer is either a 1D or a 2D array and the Depth member of CUDA_ARRAY3D_DESCRIPTOR specifies the number of layers, not the depth of a 3D array.

CUDA_ARRAY3D_SURFACE_LDST
enum CUDA_ARRAY3D_SURFACE_LDST;

This flag must be set in order to bind a surface reference to the CUDA array

CUDA_ARRAY3D_TEXTURE_GATHER
enum CUDA_ARRAY3D_TEXTURE_GATHER;

This flag must be set in order to perform texture gather operations on a CUDA array.

CU_IPC_HANDLE_SIZE
enum CU_IPC_HANDLE_SIZE;

CUDA IPC handle size

CU_LAUNCH_PARAM_BUFFER_POINTER
enum CU_LAUNCH_PARAM_BUFFER_POINTER;

Indicator that the next value in the \p extra parameter to ::cuLaunchKernel will be a pointer to a buffer containing all kernel parameters used for launching kernel \p f. This buffer needs to honor all alignment/padding requirements of the individual parameters. If ::CU_LAUNCH_PARAM_BUFFER_SIZE is not also specified in the \p extra array, then ::CU_LAUNCH_PARAM_BUFFER_POINTER will have no effect.

CU_LAUNCH_PARAM_BUFFER_SIZE
enum CU_LAUNCH_PARAM_BUFFER_SIZE;

Indicator that the next value in the \p extra parameter to ::cuLaunchKernel will be a pointer to a size_t which contains the size of the buffer specified with ::CU_LAUNCH_PARAM_BUFFER_POINTER. It is required that ::CU_LAUNCH_PARAM_BUFFER_POINTER also be specified in the \p extra array if the value associated with ::CU_LAUNCH_PARAM_BUFFER_SIZE is not zero.

CU_LAUNCH_PARAM_END
enum CU_LAUNCH_PARAM_END;

End of array terminator for the \p extra parameter to ::cuLaunchKernel

CU_PARAM_TR_DEFAULT
enum CU_PARAM_TR_DEFAULT;

For texture references loaded into the module, use default texunit from texture reference.

CU_STREAM_LEGACY
enum CU_STREAM_LEGACY;

Legacy stream handle

CU_STREAM_PER_THREAD
enum CU_STREAM_PER_THREAD;

Per-thread stream handle

CU_TRSA_OVERRIDE_FORMAT
enum CU_TRSA_OVERRIDE_FORMAT;

Override the texref format with a format inferred from the array. Flag for ::cuTexRefSetArray()

CU_TRSF_NORMALIZED_COORDINATES
enum CU_TRSF_NORMALIZED_COORDINATES;

Use normalized texture coordinates in the range [0,1) instead of [0,dim). Flag for ::cuTexRefSetFlags()

CU_TRSF_READ_AS_INTEGER
enum CU_TRSF_READ_AS_INTEGER;

Read the texture as integers rather than promoting the values to floats in the range [0,1]. Flag for ::cuTexRefSetFlags()

CU_TRSF_SRGB
enum CU_TRSF_SRGB;

Perform sRGB->linear conversion during texture read. Flag for ::cuTexRefSetFlags()

__CUDA_API_VERSION
enum __CUDA_API_VERSION;

CUDA API versioning support

Structs

CUDA_ARRAY3D_DESCRIPTOR_st
struct CUDA_ARRAY3D_DESCRIPTOR_st

3D array descriptor

CUDA_ARRAY_DESCRIPTOR_st
struct CUDA_ARRAY_DESCRIPTOR_st

Array descriptor

CUDA_MEMCPY2D_st
struct CUDA_MEMCPY2D_st
CUDA_MEMCPY3D_PEER_st
struct CUDA_MEMCPY3D_PEER_st

3D memory cross-context copy parameters

CUDA_MEMCPY3D_st
struct CUDA_MEMCPY3D_st

3D memory copy parameters

CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st
struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st

GPU Direct v3 tokens

CUDA_RESOURCE_DESC_st
struct CUDA_RESOURCE_DESC_st

CUDA Resource descriptor

CUDA_RESOURCE_VIEW_DESC_st
struct CUDA_RESOURCE_VIEW_DESC_st

Resource view descriptor

CUDA_TEXTURE_DESC_st
struct CUDA_TEXTURE_DESC_st

Texture descriptor

CUarray_st
struct CUarray_st

< CUDA function

CUctx_st
struct CUctx_st

< CUDA device

CUdevprop_st
struct CUdevprop_st

Legacy device properties

CUevent_st
struct CUevent_st

< CUDA surface reference

CUfunc_st
struct CUfunc_st

< CUDA module

CUgraphicsResource_st
struct CUgraphicsResource_st

< CUDA stream

CUipcEventHandle_st
struct CUipcEventHandle_st

CUDA IPC event handle

CUipcMemHandle_st
struct CUipcMemHandle_st

CUDA IPC mem handle

CUmipmappedArray_st
struct CUmipmappedArray_st

< CUDA array

CUmod_st
struct CUmod_st

< CUDA context

CUstream_st
struct CUstream_st

< CUDA event

CUsurfref_st
struct CUsurfref_st

< CUDA texture reference

CUtexref_st
struct CUtexref_st

< CUDA mipmapped array

CUuuid_st
struct CUuuid_st

< An opaque value that represents a CUDA surface object

Meta